package jjn.acwing.java_basic;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/8/18 17:10
 */
public class Acwing666 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        BigDecimal a = scanner.nextBigDecimal();
        BigDecimal b = scanner.nextBigDecimal();
        BigDecimal c = scanner.nextBigDecimal();
        if (a.compareTo(b) < 0) {
            BigDecimal temp = b;
            b = a;
            a = temp;
        }
        if (a.compareTo(c) < 0) {
            BigDecimal temp = c;
            c = a;
            a = temp;
        }
        BigDecimal added = b.add(c);
        if (added.compareTo(a) <= 0) {
            System.out.println("NAO FORMA TRIANGULO");
            return;
        }
        
        BigDecimal aa = a.multiply(a);
        BigDecimal bb = b.multiply(b);
        BigDecimal cc = c.multiply(c);
        BigDecimal res = bb.add(cc);
        if (res.compareTo(aa) == 0) {
            System.out.println("TRIANGULO RETANGULO");
        }
        if (res.compareTo(aa) < 0) {
            System.out.println("TRIANGULO OBTUSANGULO");
        }
        if (res.compareTo(aa) > 0) {
            System.out.println("TRIANGULO ACUTANGULO");
        }
        if (a.compareTo(b) == 0 && b.compareTo(c) == 0) {
            System.out.println("TRIANGULO EQUILATERO");
        } else if (a.compareTo(b) == 0 || b.compareTo(c) == 0 || a.compareTo(c) == 0) {
            System.out.println("TRIANGULO ISOSCELES");
        }
    }
    
}
